<template>
	<div id="app">
		<router-view />
	</div>
</template>

<script>
import { mapGetters } from 'vuex'
import Watermark from '@/utils/watermarktest'

export default {
	name: 'App',
	components: {},
	data() {
		return {
			systemEnvironment: process.env.NODE_ENV
		}
	},
	computed: {
		...mapGetters(['token'])
	},
	methods: {},
	created() {},
	mounted() {
		this.$nextTick(() => {
			if ('production' !== this.systemEnvironment) {
				Watermark.set('测试系统', document.getElementById('app'))
			}
		})
	}
}
</script>
